package 实验2;

public class TestXuanke {
	public static void main(String[] args) {
	    Course course = new Course(); 
		System.out.println(course.toString());
		Student stu0 = new Student(2020310123,"张三   ","男   ","汉族","大数据");
        Student stu1 = new Student(2020310456,"李四   ","女   ","回族","计算机");
        Student stu2 = new Student(2020310789,"王五   ","女   ","满族","物联网");
        Student stu3 = new Student(2020310666,"李六   ","男","苗族","自动化");
        Teacher tea0 = new Teacher(233,"杨老师   ","性别：男   ");
        Teacher tea1 = new Teacher(888,"周老师   ","性别：女   ");
        Teacher tea2 = new Teacher(999,"齐老师   ","性别：男   ");
        Course cour0 = new Course(1,"大学物理 ","2202   ","周一   10:00");
        Course cour1 = new Course(2," 离散数学  ","教207   ","周三  13:30");
        Course cour2 = new Course(3,"java ","教103   ","周四  10:00");
        stu0.addCourse(cour0);
        stu0.addCourse(cour1);
        stu0.addCourse(cour2);
        stu1.addCourse(cour0);
        stu1.addCourse(cour1);
        stu1.addCourse(cour2);
        stu2.addCourse(cour1);
        stu3.addCourse(cour0);
        stu3.addCourse(cour2);
        tea0.addCourse(cour0);
        tea1.addCourse(cour1);
        tea2.addCourse(cour2); 
        
        
        stu0.removeCourse(cour0);
        stu1.removeCourse(cour2);
        stu1.removeCourse(cour1);
        
        
        
        stu0.displayCourse(); 
        stu1.displayCourse();
        stu2.displayCourse();
        stu3.displayCourse();    
        tea0.displayCourse();
        tea1.displayCourse();
        tea2.displayCourse();                      
        cour0.displayStudent();
        cour1.displayStudent();
        cour2.displayStudent(); 
	}
}
	
